#pragma once
#include <list>
#include <mutex>
using namespace std;

class TB
{
public:
	void recvQueue();
	void outQueue();
	bool outProc(int &n);

	void recvQueue2();
	void outQueue2();
	bool outProc2(int &n);

	void recvQueue3();
	void outQueue3();

	unique_lock<mutex> rtnUniqueLock();

private:
	list<int> m_listRecv;
	mutex m_mutex;
	mutex m_mutex2;
	std::condition_variable m_conVar;
};

